home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / m16.dm < prev    next >
Text File  |  1997-04-12  |  7KB  |  360 lines

  1.  
  2. # DMAKE makefile for Microsoft C 16 bit
  3.  
  4. DPP = ..\bin\dpp
  5.  
  6. DPPOPTS = -C $(STRAT)
  7.  
  8.  
  9. all : # setup.dos
  10. %@[
  11.     @echo off
  12.  
  13.     cd kernel
  14.     echo Entering kernel
  15.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  16.     if errorlevel 1 goto done
  17.  
  18.     cd ..\class
  19.     echo Entering class
  20.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  21.     if errorlevel 1 goto done
  22.  
  23.     cd ..\threads
  24.     echo Entering threads
  25.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  26.     if errorlevel 1 goto done
  27.  
  28.     cd ..\generics
  29.     echo Entering generics
  30.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  31.     if errorlevel 1 goto done
  32.  
  33. :done
  34.     cd ..
  35. ]
  36.  
  37. wds-all : all
  38. %@[
  39.     @echo off
  40.  
  41.     cd softprot
  42.     echo Entering softprot
  43.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  44.     if errorlevel 1 goto done
  45.  
  46.     cd ..\windows
  47.     echo Entering windows
  48.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  49.     if errorlevel 1 goto done
  50.  
  51.     cd ..\odbc
  52.     echo Entering odbc
  53.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  54.     if errorlevel 1 goto done
  55.  
  56.     cd ..\ole
  57.     echo Entering ole
  58.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  59.     if errorlevel 1 goto done
  60.  
  61. :done
  62.     cd ..
  63. ]
  64.  
  65. all-scratch : # setup.dos
  66. %@[
  67.     @echo off
  68.  
  69.     md lib
  70.  
  71.     cd kernel
  72.     echo Entering kernel
  73.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) NEW=1
  74.     if errorlevel 1 goto done
  75.  
  76.     cd ..\class
  77.     echo Entering class
  78.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  79.     if errorlevel 1 goto done
  80.  
  81.     cd ..\threads
  82.     echo Entering threads
  83.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  84.     if errorlevel 1 goto done
  85.  
  86.     cd ..\generics
  87.     echo Entering generics
  88.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  89.     if errorlevel 1 goto done
  90.  
  91. :done
  92.     cd ..
  93. ]
  94.  
  95. wds-all-scratch : all-scratch
  96. %@[
  97.     @echo off
  98.  
  99.     cd softprot
  100.     echo Entering softprot
  101.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  102.     if errorlevel 1 goto done
  103.  
  104.     cd ..\windows
  105.     echo Entering windows
  106.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  107.     if errorlevel 1 goto done
  108.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) NEW=1
  109.     if errorlevel 1 goto done
  110.  
  111.     cd ..\odbc
  112.     echo Entering odbc
  113.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  114.     if errorlevel 1 goto done
  115.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  116.     if errorlevel 1 goto done
  117.  
  118.     cd ..\ole
  119.     echo Entering ole
  120.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  121.     if errorlevel 1 goto done
  122.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  123.     if errorlevel 1 goto done
  124.  
  125. :done
  126.     cd ..
  127. ]
  128.  
  129. clean : 
  130. %@[
  131.     @echo off
  132.  
  133.     cd kernel
  134.     echo Entering kernel
  135.     $(MAKE) clean $(MAKEFILE)
  136.  
  137.     cd ..\class
  138.     echo Entering class
  139.     $(MAKE) clean $(MAKEFILE)
  140.  
  141.     cd ..\threads
  142.     echo Entering threads
  143.     $(MAKE) clean $(MAKEFILE)
  144.  
  145.     cd ..\generics
  146.     echo Entering generics
  147.     $(MAKE) clean $(MAKEFILE)
  148.  
  149.     cd ..\dpp
  150.     echo Entering dpp
  151.     $(MAKE) clean $(MAKEFILE)
  152.  
  153.     cd ..\examples\setup
  154.     echo Entering examples (takes a while - please wait)
  155.     call cleanall.bat
  156.  
  157.     cd ..\..
  158.     bin\rm -zq setup.unx setup.dos *.~ *.?~ *.??~ #*.* *.{*
  159. ]
  160.  
  161. wds-clean : clean
  162. %@[
  163.     @echo off
  164.  
  165.     cd softprot
  166.     echo Entering softprot
  167.     $(MAKE) clean $(MAKEFILE)
  168.  
  169.     cd ..\windows
  170.     echo Entering windows
  171.     $(MAKE) clean $(MAKEFILE)
  172.  
  173.     cd ..\odbc
  174.     echo Entering odbc
  175.     $(MAKE) clean $(MAKEFILE)
  176.  
  177.     cd ..\ole
  178.     echo Entering ole
  179.     $(MAKE) clean $(MAKEFILE)
  180.  
  181.     cd ..\winexam\setup
  182.     echo Entering winexam (takes a while - please wait)
  183.     call realcln.bat
  184.     cd ..\..
  185. ]
  186.  
  187. realclean :
  188. %@[
  189.     @echo off
  190.  
  191.     cd kernel
  192.     echo Entering kernel
  193.     $(MAKE) realclean $(MAKEFILE)
  194.  
  195.     cd ..\class
  196.     echo Entering class
  197.     $(MAKE) realclean $(MAKEFILE)
  198.  
  199.     cd ..\threads
  200.     echo Entering threads
  201.     $(MAKE) realclean $(MAKEFILE)
  202.  
  203.     cd ..\generics
  204.     echo Entering generics
  205.     $(MAKE) realclean $(MAKEFILE)
  206.  
  207.     cd ..\dpp
  208.     echo Entering dpp
  209.     $(MAKE) realclean $(MAKEFILE)
  210.  
  211.     cd ..\examples\setup
  212.     echo Entering examples (takes a while - please wait)
  213.     call cleanall.bat
  214.  
  215.     cd ..\..
  216.     bin\rm -zq setup.unx setup.dos *.~ *.?~ *.??~ #*.* *.{*
  217.     bin\rm -zq lib\d*.* bin\dpp 
  218.     bin\rm -zq bin\addcr bin\addcr.exe bin\delcr bin\delcr.exe lib\d*.*
  219. ]
  220.  
  221.  
  222. wds-realclean : realclean
  223. %@[
  224.     @echo off
  225.  
  226.     cd softprot
  227.     echo Entering softprot
  228.     $(MAKE) realclean $(MAKEFILE)
  229.  
  230.     cd ..\windows
  231.     echo Entering windows
  232.     $(MAKE) realclean $(MAKEFILE)
  233.  
  234.     cd ..\odbc
  235.     echo Entering odbc
  236.     $(MAKE) realclean $(MAKEFILE)
  237.  
  238.     cd ..\ole
  239.     echo Entering ole
  240.     $(MAKE) realclean $(MAKEFILE)
  241.  
  242.     cd ..\winexam\setup
  243.     echo Entering winexam (takes a while - please wait)
  244.     call realcln.bat
  245.     cd ..\..
  246. ]
  247.  
  248. dist:
  249.     bin\rm -zq dynace*.zip
  250.     zip -r dynace README m32.dm makefile.unx makefile.inc change.log
  251.     zip dynace bin\*.* class\*.* docs\*.* dpp\*.* generics\*.* lib\*.*
  252.     zip dynace include\*.* kernel\*.* threads\*.* utils\*.* windows\*.* odbc\*.*
  253.     zip -r dynace examples\list examples\exam* examples\setup
  254.     zip -r dynace winexam\list winexam\exam* winexam\setup
  255.  
  256.  
  257. makegens:
  258. %@[
  259.     @echo off
  260.  
  261.     cd kernel
  262.     ..\bin\rm -zq generics.* 
  263.     $(DPP) $(DPPOPTS) -h -i -s *.d
  264.     if errorlevel 1 goto done
  265.     ..\bin\mv generics.h ../include
  266.  
  267.     cd ..\class
  268.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  269.     if errorlevel 1 goto done
  270.     ..\bin\mv generics.h ../include
  271.  
  272.     cd ..\threads
  273.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  274.     if errorlevel 1 goto done
  275.     ..\bin\mv generics.h ../include
  276.  
  277. :done
  278.     cd ..
  279. ]
  280.  
  281.  
  282. wds-makegens : makegens
  283. %@[
  284.     @echo off
  285.  
  286.     cd windows
  287.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  288.     if errorlevel 1 goto done
  289.     ..\bin\mv generics.h ../include/generics.h
  290.  
  291.     cd ..\odbc
  292.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  293.     if errorlevel 1 goto done
  294.     ..\bin\mv generics.h ../include/generics.h
  295.  
  296.     cd ..\ole
  297.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  298.     if errorlevel 1 goto done
  299.     ..\bin\mv generics.h ../include/generics.h
  300.  
  301. :done
  302.     cd ..
  303. ]
  304.  
  305. newgens : 
  306. %@[
  307.     @echo off
  308.  
  309.     bin\rm include\generics.h
  310.  
  311.     cd kernel
  312.     echo Entering kernel
  313.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) reallynewgens
  314.     if errorlevel 1 goto done
  315.  
  316.     cd ..\class
  317.     echo Entering class
  318.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  319.     if errorlevel 1 goto done
  320.  
  321.     cd ..\threads
  322.     echo Entering threads
  323.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  324.     if errorlevel 1 goto done
  325.  
  326.     cd ..\dpp
  327.     echo Entering dpp
  328.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  329.     if errorlevel 1 goto done
  330.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) generics.c
  331.     if errorlevel 1 goto done
  332.  
  333. :done
  334.     cd ..
  335. ]
  336.  
  337. wds-newgens : newgens
  338. %@[
  339.     @echo off
  340.  
  341.     cd windows
  342.     echo Entering windows
  343.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  344.     if errorlevel 1 goto done
  345.  
  346.     cd ..\odbc
  347.     echo Entering odbc
  348.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  349.     if errorlevel 1 goto done
  350.  
  351.     cd ..\ole
  352.     echo Entering ole
  353.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  354.     if errorlevel 1 goto done
  355.  
  356. :done
  357.     cd ..
  358. ]
  359.  
  360.